import {
	request
} from "../api.js"

// 云店商家

// 开通云店
export const cloudManageOpen = (data) => {
	return request("cloud_manage/open", "POST", data)
}

// 门店信息获取
export const cloudManageInfo = (data) => {
	return request("cloud_manage/info", "GET", data)
}

// 门店信息编辑
export const cloudManageEdit = (data) => {
	return request("cloud_manage/edit", "POST", data)
}

// 店铺实名资质提交
export const cloudManageQualification = (data) => {
	return request("cloud_manage/qualification", "POST", data)
}

// 商品分类
export const cloudManageCategory = (data) => {
	return request("cloud_manage/category", "GET",data)
}

// 商品列表
export const cloudManageGoods = (data) => {
	return request("cloud_manage/goods", "GET", data)
}

// 商品信息
export const cloudManageDetail = (data) => {
	return request("cloud_manage/detail", "GET", data)
}

// 添加商品
export const cloudManageAddGoods = (data) => {
	return request("cloud_manage/addGoods", "POST", data)
}

// 从平台仓库添加商品
export const cloudManageAddGoodsFromPlatform = (data) => {
	return request("cloud_manage/addGoodsFromPlatform", "POST", data)
}

// 商品上架
export const cloudManageGoodsUp = (data) => {
	return request("cloud_manage/goodsUp", "POST", data)
}

// 商品下架
export const cloudManageGoodsDown = (data) => {
	return request("cloud_manage/goodsDown", "POST", data)
}

// 商品删除
export const cloudManageGoodsDel = (data) => {
	return request("cloud_manage/goodsDel", "POST", data)
}

// 订单列表
export const cloudManageOrderList = (data) => {
	return request("cloud_manage/orderList", "GET", data)
}

// 订单详情
export const cloudManageOrderDetail = (data) => {
	return request("cloud_manage/orderDetail", "GET", data)
}

// 订单取消
export const cloudManageOrderCancel = (data) => {
	return request("cloud_manage/orderCancel", "POST", data)
}

// 店主管理
export const storeManager = (data) => {
	return request("store/manager", "GET", data)
}

// 创客管理
export const storeMaker = (data) => {
	return request("store/maker", "GET", data)
}

// 会员管理
export const storeMember = (data) => {
	return request("store/member", "GET", data)
}

// 开店协议获取
export const storeAgreement = (data) => {
	return request("store/agreement", "GET", data)
}